import time
from selenium import webdriver
from selenium.webdriver.common.by import By

wd = webdriver.Chrome()
url = 'http://www.baidu.com'
wd.get(url)
time.sleep(4)
en = wd.find_element(By.ID, 'kw').send_keys('周杰伦')
time.sleep(4)
# oo = wd.find_element(By.ID,'su').click()
hhh = wd.find_element(By.XPATH, '//*[@id="su"]').click()
time.sleep(4)
js_bottom = 'document.documentElement.scrollTop=100000'
wd.execute_script(js_bottom)
time.sleep(4)
fenglele = wd.find_element(By.CSS_SELECTOR,'#page > div > a.n > span').click()
time.sleep(4)
wd.back()
time.sleep(4)
print(wd.page_source)
wd.close()